package com.wnhoo.smartfishtank.api.data;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by kevinwen on 2014/12/27.
 * Copyright (c) 2014/12/27.KevinWen. All rights reserved.
 */
public class LM_DataPlugList {

    /**
     {
     "error_code": 0,
     "data": [
     {
     "id": "1005ACCF2337CB19",
     "title": "plug",
     "type": 1005,
     "online": 1,
     "full_status": "0,700"
     },
     {
     "id": "1015ACCF2321646C",
     "title": "??646C",
     "type": 1005,
     "online": 1,
     "full_status": "0,700"
     }
     ]
     }     */

    private int error_code;
    private List<DataPlug> data;

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public List<DataPlug> getData() {
        if(data==null){
            data = new ArrayList<>();
        }
        return data;
    }

    public void setData(List<DataPlug> data) {
        this.data = data;
    }
}
